import { createPinia } from "pinia";
import { global } from "./global";

export const pinia = createPinia();
if (!import.meta.env.SSR) {
	const ssrState = global.__ssr_state?.state;
	if (ssrState) {
		pinia.state.value = ssrState;
	}
}
